package com.jh3502.helper.function.person;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.jh3502.helper.R;
import com.jh3502.helper.base.BaseActivity;
import com.jh3502.helper.view.TouchImageView;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author harisucici
 */
public class ImageShowActivity extends BaseActivity {
    @Nullable
    @BindView(R.id.touchImage)
    TouchImageView touchImage;

    @Override
    protected int setViewId() {
        return R.layout.activity_image_show;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        Glide.with(this).load(getIntent().getStringExtra("path")).into(touchImage);
    }

    @Override
    protected void doOnDestroy() {

    }

    @Override
    protected void doOnResume() {

    }

    @Override
    protected void doOnSaveInstanceState(Bundle savedInstanceState) {

    }


    @Override
    public void responseError(int code, String msg) {

    }

    @OnClick(R.id.back)
    public void onViewClicked() {
        onBackPressed();
    }
}